# -*- coding: utf-8 -*-
from flask import Flask
"""
主题函数
"""
def init(app:Flask):
    @app.template_global()
    def get_post_test():
        from apps.modules.admin.models.cms.cms_post import Post
        """
        获取当前主题名称
        :return:
        """
        post = Post.query.filter_by(id=16).first()
        return post.title

def unload(app:Flask=None):
    print("ppress functions unloaded")
